package com.example.apisimpledy.repository;

import com.example.apisimpledy.entity.dto.MyUser;
import com.example.apisimpledy.entity.dto.Video;
import com.example.apisimpledy.entity.dto.VideoLike;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface VideoLikeRepository extends JpaRepository<VideoLike, Long> {
    boolean existsByMyUserIdAndVideoId(Long userId, Long videoId);
   // Optional<VideoLike> findByMyUserAndVideo(MyUser myUser, Video video);
}